package com.company.cloud.point.modules.api.service;

import com.company.cloud.common.bean.BaseClientResult;
import com.company.cloud.point.modules.api.fallback.PointRemoteServiceFallbackFactory;
import com.company.cloud.point.modules.api.request.PointEventParam;
import com.company.common.server.constant.ServiceNameConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(contextId = "pointRemote", name = ServiceNameConstant.point2Task_center, fallbackFactory = PointRemoteServiceFallbackFactory.class)
public interface PointRemoteService {

    /**积分事件处理*/
    @RequestMapping(value = "/remote/ump/point/pointEventProcess" ,method = RequestMethod.POST)
    public BaseClientResult<String> pointEventProcess(@RequestBody PointEventParam request);

}
